﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace WebFirst.Entities
{
    /// <summary>
    /// 短信推送日志表，包括回执信息
    ///</summary>
    [SugarTable("sms_log")]
    public class SmsLog
    {
        /// <summary>
        /// 日志ID，主键，自增 
        ///</summary>
         [SugarColumn(ColumnName="ID" ,IsPrimaryKey = true ,IsIdentity = true  )]
         public int Id { get; set; }
        /// <summary>
        /// 接收方手机号码 
        ///</summary>
         [SugarColumn(ColumnName="RecipientPhoneNumber"    )]
         public string RecipientPhoneNumber { get; set; }
        /// <summary>
        /// 短信内容 
        ///</summary>
         [SugarColumn(ColumnName="MessageContent"    )]
         public string MessageContent { get; set; }
        /// <summary>
        /// 发送时间 
        ///</summary>
         [SugarColumn(ColumnName="SendTime"    )]
         public DateTime SendTime { get; set; }
        /// <summary>
        /// 发送状态（例如：成功、失败、待发送等） 
        ///</summary>
         [SugarColumn(ColumnName="Status"    )]
         public string Status { get; set; }
        /// <summary>
        /// 错误代码（可选，用于记录发送失败时的错误信息） 
        ///</summary>
         [SugarColumn(ColumnName="ErrorCode"    )]
         public string? ErrorCode { get; set; }
        /// <summary>
        /// 错误消息（可选，用于记录发送失败时的详细错误信息） 
        ///</summary>
         [SugarColumn(ColumnName="ErrorMessage"    )]
         public string ErrorMessage { get; set; }
        /// <summary>
        /// 回执状态（例如：成功、失败、未收到等） 
        ///</summary>
         [SugarColumn(ColumnName="ReceiptStatus"    )]
         public string ReceiptStatus { get; set; }
        /// <summary>
        /// 回执时间 
        ///</summary>
         [SugarColumn(ColumnName="ReceiptTime"    )]
         public DateTime? ReceiptTime { get; set; }
        /// <summary>
        /// 回执消息（可选，用于记录回执的详细信息） 
        ///</summary>
         [SugarColumn(ColumnName="ReceiptMessage"    )]
         public string ReceiptMessage { get; set; }
         public string PatientId { get; set; }
        /// <summary>
        /// 模版id
        /// </summary>
         public int TemplateId { get; set; }
        /// <summary>
        /// 计划id
        /// </summary>
         public int PlanId { get; set; }
        /// <summary>
        /// 回调信息
        /// </summary>
         public string Content { get; set; }
        /// <summary>
        /// 阿里云唯一id
        /// </summary>
         public string BizId { get; set; }
    }
}
